package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao.HZJZPZDao;
import com.capinfo.accumulation.model.accounting.mybist.HZJZPZ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.ZJYZPZGLServiceI;

@Service("ZJYZPZGLService")
public class  ZJYZPZGLServiceImpl implements  ZJYZPZGLServiceI {
	
	@Autowired
	HZJZPZDao  hZJZPZDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.hZJZPZDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(HZJZPZ record) {
		return this.hZJZPZDao.insertSelective(record);
	}

	@Override
	public HZJZPZ selectByPrimaryKey(String id) {
		return this.hZJZPZDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(HZJZPZ record) {
		return this.hZJZPZDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<HZJZPZ> retList = this.hZJZPZDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

	@Override
	public List<Map<String, Object>> hsdw() {
		return this.hZJZPZDao.hsdw();
	}
	
	public List<Map<String, Object>> cwzt(){
		return this.hZJZPZDao.cwzt();
	}

	@Override
	public int insertSelective(HZJZPZ record) {
		
		return this.hZJZPZDao.insertSelective(record);
	}

	@Override
	public String getXSPZHByDate(String str) {
		return this.hZJZPZDao.getXSPZHByDate(str);
	}

	@Override
	public int deleteByHZPZId(String id) {
		return this.hZJZPZDao.deleteByHZPZId(id) ;
	}

	@Override
	public String getHSDWById(String id) {
		return this.hZJZPZDao.getHSDWById(id);
	}

	@Override
	public List<Map<String, Object>> getZJYWLX() {
		return this.hZJZPZDao.getZJYWLX();
	}

	@Override
	public List<Map<String, Object>> getYWLX(String str) {
		return this.hZJZPZDao.getYWLX(str);
	}



	
}
